--out-file and --out-dir cannot be used together
